<?php
/**
 * 文字直播
 */
namespace app\sports\company\model;

use think\Db;
use think\Model;

class CompanyModel extends Model
{

    private $database = 'sports_database';

    /*
     * 批量插入百欧公司数据
     *
     */
    public function InsertCompanyAll(array $array)
    {
        return Db::database($this->database)->table('foot_ball_company')->insertAll($array);

    }

    /*
     * 查询所有百欧公司的id
     */
    public function QueryCompanyId(){
        return Db::database($this->database)->table('foot_ball_company')->field('company_id')->select();
    }
    /*
     * 更新数据表单条数据
     *$id百欧公司的id
     *$$array 要更新的数据
     */
    public function UpdateComanyId($id,$array){
        return Db::database($this->database)->table('foot_ball_company')->where('company_id',$id)->update($array);
    }

}